package com.zut.dao;

import com.github.pagehelper.Page;
import com.zut.pojo.Setmeal;

import java.util.List;
import java.util.Map;

/**
 * @author sq
 * @create 2021-06-30-8:24
 */
public interface SetmealDao {
    //新增套餐
    public void add(Setmeal setmeal);
    //操作t_setmeal_checkgroup表，关联套餐和检查组的多对多的关系
    public void setSetmealAndCheckGroup(Map map);
    //套餐分页查询
    public Page<Setmeal> findByCondition(String queryString);
    //查询套餐列表数据
    public List<Setmeal> getAllSetmeal();
    //根据套餐ID查询套餐详情
    public Setmeal findById(int id);
    //查询套餐数量和名称
    public List<Map<String, Object>> findSetmealCount();
}
